using System;
using System.Collections.Generic;
using System.Text;

namespace LibGreen.Jabber.ProtocolElements.IqElements
{
    /// <summary>
    /// Defines an &lt;query&gt; element, a child of the &lt;iq&gt; element
    /// </summary>
    public static class IqQueryElement
    {
        /// <summary>
        /// Creates a &lt;query&gt; element for use in an &lt;iq&gt; element
        /// </summary>
        /// <param name="xmlns">The value of the query's xmlns attribute</param>
        /// <returns>A new &lt;query&gt; element</returns>
        public static Element Create(string xmlns)
        {
            Dictionary<string, string> attributes = new Dictionary<string, string>(2);
            attributes["xmlns"] = xmlns;
            return Element.CreateElement("query", attributes);
        }
    }
}
